package ooday02;

class Doctor extends Person{
    String title;

    public Doctor(String name,int age,String address,String occupation,String title){
        super(name, age, address, occupation);
        this.title = title;
    }



    void heal(){
        System.out.println(title+" "+name+occupation+" 正在医治病人");
    }


}